import frappe
from frappe.gettext.translate import compile_translations

@frappe.whitelist()
def a_translate(app_name=None):
    if not app_name:
        app_name = "laoyu_en"
    
    compile_translations(target_app=app_name)
    return "翻译编译完成"